{template admin/header}

	<table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder">
		<tr class="header">
			<td colspan="2">酒店房间</td>
		</tr>
		<tr>
			<td class="altbg1" width="150">酒店名称:</td>
			<td class="altbg2">{$info[name]}</td>
		</tr>
		<tr>
			<td class="altbg1" width="150">&nbsp;
			</td>
			<td class="altbg2">
				<button class="button" type="button" onclick="window.location.href='manage.php?m=hostel_room&a=add&hid={$info[id]}';return false;">添加房间</button>
			</td>
		</tr>
		
	</table>

	<form method="post" action="manage.php?m=hostel_room&a=do_delete&bid={$info[id]}">
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
			<tr class="header">
				<td width="30">
				<input class="checkbox" type="checkbox" name="chkall" onclick="checkall(this.form,'ids')" ></td>	
				<td>房间类型</td>
				<td>价格</td>
				<td>面积</td>
				<td>图片</td>
				<td width="80">操作</td>
			</tr>
			<!--{loop $list $item}-->
			<tr align="center">
				<td class="altbg1" style="border-bottom:1px dashed #ccc">
					<input class="checkbox" type="checkbox" name="ids[]" value="$item[id]" >
				</td>
				<td class="altbg1" style="border-bottom:1px dashed #ccc">
					<a href="manage.php?m=hostel_room&a=modify&hid={$info[id]}&id={$item[id]}">{$item[name]}</a>
				</td>
				<td class="altbg2" style="border-bottom:1px dashed #ccc">
					{$item[price]} 元
				</td>
				<td class="altbg1" style="border-bottom:1px dashed #ccc">
					{$item[area]} 平方
				</td>
				<td class="altbg2" style="border-bottom:1px dashed #ccc">
					<!-- {if $item[image]} -->
					<a href="{$item[image]}" target="_blank"><img width="50" height="50" src="{$item[image]}"></a><br />
					<!-- {/if} -->
				</td>
				<td class="altbg1" style="border-bottom:1px dashed #ccc">
					<a href="manage.php?m=hostel_room&a=modify&hid={$info[id]}&id={$item[id]}">编辑</a>&nbsp;|&nbsp;
					<a href="manage.php?m=hostel_room&a=do_delete&hid={$info[id]}&ids={$item[id]}" onclick="return delete_confirm();">删除</a>&nbsp;
				</td>
			</tr>
			<!--{/loop}-->

		</table>
	
		<center><input class="button" type="submit" name="cronssubmit" value="删除所选" onclick="return delete_confirm();"></center>
	</form>
	
	<br />

<script type="text/javascript" src="templates/default/js/travel_info.js"></script>